package com.test.dazuoye.dao;


        import com.test.dazuoye.domain.DingDan;
        import com.test.dazuoye.domain.shangjia;
        import org.apache.ibatis.annotations.Delete;
        import org.apache.ibatis.annotations.Insert;
        import org.apache.ibatis.annotations.Mapper;
        import org.apache.ibatis.annotations.Select;
        import org.springframework.stereotype.Repository;

        import java.util.List;

/**
 * @date 2020/6/4-10:14
 */
@Mapper
@Repository
public interface DingDanDao {

    //查询用户
    @Select("select * from dingdan")
    public List<DingDan> findAll();


    //删除用户
    @Delete("delete from dingdan where dname=#{dname}")
    public void deleteDingDan(String dname);

    //保存用户
    @Insert("insert into dingdan(dname,shuliang) values (#{dname},#{shuliang})")
    public void saveDingDan(DingDan dingDan);
}
